//
//  WSFinishButtonView.m
//  LANGirl
//
//  Created by 吴帅 on 16/3/29.
//
//

#import "WSFinishButtonView.h"

#define MAINCOLOR [UIColor colorWithRed:248/255.0 green:233/255.0 blue:112/255.0 alpha:1]

@implementation WSFinishButtonView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self createSubView];
    }
    return self;
}

- (void)createSubView {

    UIButton *finish = [UIButton buttonWithType:UIButtonTypeCustom];
    finish.backgroundColor = MAINCOLOR;
    [self addSubview:finish];
    [finish mas_makeConstraints:^(MASConstraintMaker *make) {
        
        make.centerY.equalTo(self);
        make.left.mas_equalTo(@15);
        make.right.mas_equalTo(@-15);
        make.height.mas_equalTo(@40);
    }];
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
